<?php require_once ("admin-header.php");

$allowAccess = isset($_SESSION['administrator']);
$allowAccess |= isset($_SESSION['problem_editor']);
if ( !$allowAccess ){
	echo "<a href='../loginpage.php'>Please Login First!</a>";
	exit(1);
}
?>
<div style="margin-left: 1rem;color: blue">
    输入题目完整链接并点击提交。例如：http://poj.org/problem?id=1002
</div>
<ol>
    <li>
        Copy from https://www.luogu.org/problemnew/show/
        <form method=POST action=problem_add_page_luogu.php>
            <input style="width:28rem;" name=url type=text>
            <input type=submit value="提交">
        </form>
    </li>
    <li>
        Copy from http://noi.openjudge.cn/ch0110/05/
        <form method=POST action=problem_add_page_openjudge.php>
            <input style="width:28rem;" name=url type=text>
            <input type=submit value="提交">
        </form>
    </li>
    <li>
        Copy from[杭电oj] http://acm.hdu.edu.cn
        <form method=POST action=problem_add_page_hdu.php>
            <input style="width:28rem;" name=url type=text>
            <input type=submit value="提交">
        </form>
    </li>
    <li>
        Copy from https://loj.ac/problem/
        <form method=POST action=problem_add_page_loj.php>
            <input style="width:28rem;" name=url type=text>
            <input type=submit value="提交">
        </form>
    </li>
    <li>
        Copy from http://acm.student.cs.uwaterloo.ca/~acm00
        <form method=POST action=problem_add_page_waterloo.php>
            <input style="width:28rem;" name=url type=text>
            <input type=submit value="提交">
        </form>
    </li>
    <li>
        Copy from http://poj.org/ <br/>
        <form method=POST action=problem_add_page_pku.php>
            <input style="width:28rem;" name=url type=text>
            <input type=submit value="提交">
        </form>
    </li>

    <li>
        Copy from acm.hdu.edu.cn
        <form method=POST action=problem_add_page_hdu.php>
            <input style="width:28rem;" name=url type=text>
          <input type=submit>
        </form>
    </li>

    <li>
        Copy from acm.zju.edu.cn
        <form method=POST action=problem_add_page_zju.php>
            <input style="width:28rem;" name=url type=text>
          <input type=submit>
        </form>
    </li>
</ol>
